package com.framework.service.yhbservice.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.dao.YHBDao.user.PhoneDepotDao;
import com.framework.service.yhbservice.YhbPhoneDepotService;
import com.framework.yhbEntity.user.YhbPhoneDepot;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional(rollbackFor = Exception.class)
@Service("yhbPhoneDepotService")
public class YhbPhoneDepotServiceImpl extends ServiceImpl<PhoneDepotDao, YhbPhoneDepot> implements YhbPhoneDepotService {
    @Override
    public YhbPhoneDepot queryByPhone(String phone) {
        YhbPhoneDepot t = baseMapper.queryByPhone(phone);
        return t;
    }

    @Override
    public void updateIsUser(String phone) {
        baseMapper.updateIsUser(phone);
    }
}
